<?php
/**
 * Created by PhpStorm.
 * User: ruma
 * Date: 2019/2/2
 * Time: 10:49
 */

namespace app\admin\validate;


class LinkValidate extends BaseValidate
{
    protected $rule = [
        'link_name'=>'require',
        'link_url'=>'require',
        'link_sort'=>'require|between:1,9999',
    ];
    protected $message = [
        'link_name.require'=>'请输入友链名称',
        'link_url.require'=>'请输入友链地址',
        'link_sort.require'=>'请输入友链排序',
        'link_sort.between'=>'友链排序需在1-9999之间',
    ];
}